<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //1.Object.is 判断两个值是否完全相等
        console.log(Object.is(100,100)) //作用类似与 ===
        //与全等的区别 
        console.log(Object.is(NaN,NaN))
        console.log(NaN===NaN)

        //2.Object.assgin 对象的合并
        let a = {
            name:'123',
            host:"ok",
            test:'444'
        }
        let b = {
            name:'333',
            host:"ok?",
            test2:'4442'
        }
        console.log(Object.assign(a,b))

        //3.Object.setPrototypeof 设置原型对象
        const dd ={
            name:'4444'
        }
        const ddc ={
            qq:[123,321]
        }
        Object.setPrototypeOf(dd,ddc)
        console.log(Object.getPrototypeOf(dd))
        console.log(dd)
    </script>
</body>
</html>